package spring.cloud.tasks.api.database.service;

import spring.cloud.tasks.api.database.entity.TaskConfigurationDto;

import java.util.List;

public interface TaskConfigurationDtoService {

    int insert(TaskConfigurationDto taskConfigurationDto) throws RuntimeException;

    int delete(Long id) throws RuntimeException;

    int update(TaskConfigurationDto taskConfigurationDto) throws RuntimeException;

    void updatePreferExecutorIdList(TaskConfigurationDto taskConfigurationDto);


    List<TaskConfigurationDto> getTaskConfigurationDtoListByNameSpace(String nameSpace) throws RuntimeException;


    TaskConfigurationDto getTaskConfigurationDtoByNameSpaceAndTaskId(String nameSpace, String taskId) throws RuntimeException;

    List<String> getTaskIdListByNameSpace(String nameSpace) throws RuntimeException;


}